solve identity matrix